<template>
  <div class="set">
    <div class="header">
      <van-icon
        name="arrow-left"
        @click="onChange"
        size="0.48rem"
        color="#999"
      />设置
      <p></p>
    </div>
    <div class="wrap">
      <div class="logo">
        <p><img src="../../assets/logo.png.png" /><span>斑马旅游</span></p>
      </div>
      <div class="content">
        <router-link to="/Agreement"
          ><span>用户协议</span><van-icon name="arrow" size="16" /></router-link
        ><router-link to="/Statement"
          ><span>特别声明</span><van-icon name="arrow" size="16" /></router-link
        ><router-link to="/AboutUs"
          ><span>关于我们</span><van-icon name="arrow" size="16"
        /></router-link>
        <button class="btn" @click="logOut">退出登录</button>
      </div>
    </div>
  </div>
</template>

<script setup>
import { removeCookie } from "@/Hook/cookie";
import { useRouter } from "vue-router";
const router = useRouter();
const onChange = () => history.back();

const logOut = () => {
  removeCookie("uid");
  router.push("/");
};
</script>

<style scoped>
.header {
  height: 0.88rem;
  font-size: 0.3rem;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  line-height: 0.88rem;
  border-bottom: 1px solid #eee;
  color: #333;
  padding: 0 15px;
}
.wrap {
  font-size: 0.28rem;
  width: 100%;
  margin-top: 0.88rem;
}
.logo {
  width: 100%;
  height: 3rem;
  border-bottom: 0.5px solid #dedede;
}
.logo img {
  width: 0.8rem;
  height: 0.88rem;
}
.logo p {
  width: 1.12rem;
  height: 1.62rem;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  margin: 1.5rem auto;
}
.content {
  width: 100%;
  box-sizing: border-box;
  padding: 0 0.3rem;
  margin-top: 0.3rem;
  position: relative;
  background-color: #fff;
}
.content a {
  height: 1rem;
  background-color: #f9f8f8;
  margin: 2px 0;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #666;
  padding: 0 0.3rem;
}
.content a span {
  flex: 1;
  text-indent: 1em;
  font-size: 0.3rem;
}
.btn {
  width: 6.8rem;
  height: 0.88rem;
  border: 1px solid #c14374;
  color: #c14374;
  background-color: #fff;
  margin-top: 0.6rem;
}
</style>
